import {Component, Input, OnInit} from '@angular/core';

@Component({
  selector: 'app-start',
  templateUrl: './start.component.html',
  styleUrls: ['./start.component.css']
})
export class StartComponent implements OnInit {
  @Input()
  rating:number=0;
  starts :boolean[];
  constructor() { }

  ngOnInit() {
    this.starts=[];
    for(let i = 1 ; i <=5 ;i++){
      this.starts.push(i>this.rating)
    }
    // this.starts=[false,true,true,true,true]
  }

}
